﻿using System.Data;
using Pansoft.Authority.Entities;

namespace Pansoft.Authority.Interfaces
{
    /// <summary>与权限判断等相关的接口定义
    /// </summary>
    public interface IAuthorityController
    {
        /// <summary>当前用户是否有相应的操作权限
        /// </summary>
        /// <param name="userInfo">用户</param>
        /// <param name="authorityItemId">操作权限编号</param>
        /// <returns>是否有权限</returns>
        bool IsAuthorized(StaffBase userInfo, string authorityItemId);
    }
}